package com.ruoyi.pms.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 采购申请对象 pms_request
 * 
 * @author ruoyi
 * @date 2021-11-04
 */
public class PmsRequest extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String requestUuid;

    /** 状态（正常、停用，字典表） */
    @Excel(name = "状态", readConverterExp = "正=常、停用，字典表")
    private String sysNormalDisable;

    /** 单据标题 */
    @Excel(name = "单据标题")
    private String docTitle;

    /** 单据编号 */
    @Excel(name = "单据编号")
    private String docNum;

    /** 单据时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "单据时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date docDt;

    /** 备注 */
    @Excel(name = "备注")
    private String docNote;

    /** 经办人ID（用户表ID） */
    @Excel(name = "经办人ID", readConverterExp = "用=户表ID")
    private Long fkAttentionUserId;
    private String attentionUserNickName;
    private String confirmUserNickName;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date confirmDt;

    /** 审核结果（字典表） */
    @Excel(name = "审核结果", readConverterExp = "字=典表")
    private String oaDictConfirmStatus;

    /** 审核意见 */
    @Excel(name = "审核意见")
    private String confirmNote;

    /** 采购申请信息 */
    private List<PmsRequestDetails> pmsRequestDetailsList;

    @Excel(name = "物料名称")
    private String itemName;

    @Excel(name = "物料编码")
    private String itemNum;

    public void setRequestUuid(String requestUuid)
    {
        this.requestUuid = requestUuid;
    }

    public String getRequestUuid() 
    {
        return requestUuid;
    }

    @Override
    public Date getDocDt() {
        return docDt;
    }

    @Override
    public void setDocDt(Date docDt) {
        this.docDt = docDt;
    }

    public List<PmsRequestDetails> getPmsRequestDetailsList()
    {
        return pmsRequestDetailsList;
    }

    public void setPmsRequestDetailsList(List<PmsRequestDetails> pmsRequestDetailsList)
    {
        this.pmsRequestDetailsList = pmsRequestDetailsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("requestUuid", getRequestUuid())
            .append("sysNormalDisable", getSysNormalDisable())
            .append("docTitle", getDocTitle())
            .append("docNum", getDocNum())
            .append("docDt", getDocDt())
            .append("docNote", getDocNote())
            .append("fkAttentionUserId", getFkAttentionUserId())
            .append("fkConfirmUserId", getFkConfirmUserId())
            .append("confirmDt", getConfirmDt())
            .append("oaDictConfirmStatus", getOaDictConfirmStatus())
            .append("confirmNote", getConfirmNote())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("pmsRequestDetailsList", getPmsRequestDetailsList())
            .toString();
    }
}
